package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter@Getter
public class StrategyDetail extends BaseDomain {
    public static final Integer STATE_DISPLAY = 0; //发布
    public static final Integer STATE_UNDISPLAY = 1; //下架

    private String title; //攻略标题

    private String strategyName; //攻略名称

    private String subTitle; //副标题

    private String summary; //摘要

    private String coverUrl; //封面

    private Date createTime; //创建时间

    private Integer viewnum = 0; //浏览数

    private Integer replynum = 0; //回复数

    private Integer favornum = 0; // 收藏数

    private Integer sharenum = 0; //分享数

    private Integer thumbsupnum = 0; //点赞数

    private Integer state = STATE_DISPLAY; //状态

    private Destination dest; //目的地

    private StrategyTheme theme; //主题

    private StrategyCatalog catalog; //分类

    private StrategyContent strategyContent; //攻略内容

    public String getStateName() {
        return state == STATE_DISPLAY ? "发布" : "下架";
    }
}